package com.yxl.service;

import com.spring.*;

/**
 * @Classname UserService
 * @Description TODO
 * @Date 2023-04-01 16:06
 * @Created by yxl
 */
@Component("userService")
//@Scope("singleton")
public class UserService implements UserInterface, BeanNameAware {

    @Autowired
    private OrderService orderService;

    @YxlValue("xxx")
    private String test;

    private String beanName;

    public void test(){
        System.out.println(test);
        System.out.println(beanName);
    }

    @Override
    public void setBeanName(String name) {
        this.beanName = name;
    }
}
